//
//  MyCarParameterItemView.m
//  SecondPage
//
//  Created by xiong qi on 13-5-15.
//  Copyright (c) 2013年 winston. All rights reserved.
//

#import "MyCarParameterItemView.h"

@implementation MyCarParameterItemView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width/2-15, frame.size.height)];
        titleLabel.textColor = [UIColor colorWithRed:0.4 green:0.4 blue:0.4 alpha:1.0];
        titleLabel.textAlignment = NSTextAlignmentLeft;
        titleLabel.font = [UIFont fontWithName:@"Arial" size:12];
        [titleLabel setBackgroundColor:[UIColor clearColor]];
        [self addSubview:titleLabel];
        [titleLabel release];
        
        textLabel = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width/2 - 25.0, 0, frame.size.width/2-15 + 25.0, frame.size.height)];
        textLabel.textColor = [UIColor colorWithRed:0.4 green:0.4 blue:0.4 alpha:1.0];
        textLabel.textAlignment = NSTextAlignmentLeft;
        textLabel.font = [UIFont fontWithName:@"Arial" size:12];
        [textLabel setBackgroundColor:[UIColor clearColor]];
        [self addSubview:textLabel];
        [textLabel release];
    }
    return self;
}

-(void)SetTitle:(NSString *)title AndContent:(NSString *)content
{
    titleLabel.text = title;
    textLabel.text = content;
}

@end
